﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LevelLetterFragment : MonoBehaviour
{
    public List<CycleStateSwitch> cycleStateList = new List<CycleStateSwitch>();
    public GameLevelItem gameLevelItem;
    void Start()
    {

    }

    public void JudgeResult()
    {
        int length = cycleStateList.Count;
        bool result = true;
        for (int i = 0; i < length; i++)
        {
            if (!cycleStateList[i].curState)
            {
                result = false;
                break;
            }
        }
        if (result)
        {
            gameLevelItem.TriggerResult(true);
        }
    }
}
